package student.design_pattern.observer_pattern;

public class Test {

    public static void main(String[] args) {
        Observer observerA = new ObserverA();
        Observer observerB = new ObserverB();
        Observer observerC = new ObserverC();

        Subject subject = new ConcreteSubject();
        subject.attach(observerA);
        subject.attach(observerB);
        subject.attach(observerC);

        subject.notifyEveryOne("start");
    }
}
